﻿using BPMS.Utility.Web;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Web.Mvc;

namespace BPMS.Web.Extends
{
    public class ControllerBase : Controller
    {
        protected override HttpNotFoundResult HttpNotFound(string statusDescription)
        {
            string strMessage = string.Format("页面未找到：请求地址-{0};跳转地址-{1}", URLUtility.RequestUrl(), URLUtility.UrlReferrer());
            return HttpNotFound("页面未找到");
        }
        protected override void HandleUnknownAction(string actionName)
        {
            string strMessage = string.Format("页面未找到：请求地址-{0};跳转地址-{1}", URLUtility.RequestUrl(), URLUtility.UrlReferrer());
            this.Redirect(URLUtility.RootUrl + "/ErrorPage.Html");
        }
        protected override void OnActionExecuting(ActionExecutingContext filterContext)
        {
            base.OnActionExecuting(filterContext);
        }
    }
}
